package com.wbpay.sdk.request;

import com.wbpay.sdk.framework.ResponseCallback;
import com.wbpay.sdk.params.User;

/**
 * Created by ck01- on 2017/7/4.
 */

public interface IUserRequest {

    public static final String KEY = "JSDHhdfamxo1fa*fbapsfg%dncadfFY6";
    /**
     * 登录URL
     */
    public static final String SSO_LOGIN_URL = "http://login.passport.9you.com/tel_u_login";

    /**
     * 用户名注册
     */
    public static final String USERNAME_REGISTER_URL = "http://sdk.9you.net/user/regist";

    /**
     * 手机号码注册
     */
    public static final String CELLPHONE_REGISTER_URL = "http://sdk.9you.net/user/mRegist";

    /**
     * 获取验证码
     */
    public static final String SMS_URL = "http://sdk.9you.net/user/sendVcode";

    /**
     * 验证验证码
     */
    public static final String SMS_CHECK_URL = "http://sdk.9you.net/user/checkVcode";

    /**
     * 查询用户名是否可用
     */
    public static final String REG_QUERY_URL = "http://register.9you.com/Query";

    /**
     * 登陆接口
     *
     * @param username
     * @param password
     * @param callback
     */
    public void login(String username, String password, ResponseCallback<User> callback);

    /**
     * 用户名注册
     *
     * @param username
     * @param password
     * @param callback
     */
    public void registerByUserName(String username, String password, final ResponseCallback<User> callback);

    /**
     * 电话号码注册
     *
     * @param telphone
     * @param password
     * @param callback
     */
    public void registerByTelephne(String telphone, String password, final ResponseCallback<User> callback);

    /**
     * 获取验证码
     *
     * @param telphone
     * @param callback
     */
    public void fetchCaptcha(String telphone, final ResponseCallback<Void> callback);

    /**
     * 验证验证码
     *
     * @param telphone
     * @param captcha
     * @param callback
     */
    public void verifyCaptcha(String telphone, String captcha, final ResponseCallback<Void> callback);

    /**
     * 查看用户是否已经注册
     *
     * @param username
     * @param callback
     */
    public void checkRegisterUser(String username, final ResponseCallback<Void> callback);
}
